import request from '@/utils/request'

// 查询应急救援记录列表
export function listEmergencyrescuerecords(query) {
  return request({
    url: '/masterrabbit-kaixuan/emergencyrescuerecords/list',
    method: 'get',
    params: query
  })
}

// 查询应急救援记录详细
export function getEmergencyrescuerecords(rescueId) {
  return request({
    url: '/masterrabbit-kaixuan/emergencyrescuerecords/' + rescueId,
    method: 'get'
  })
}

// 新增应急救援记录
export function addEmergencyrescuerecords(data) {
  return request({
    url: '/masterrabbit-kaixuan/emergencyrescuerecords',
    method: 'post',
    data: data
  })
}

// 修改应急救援记录
export function updateEmergencyrescuerecords(data) {
  return request({
    url: '/masterrabbit-kaixuan/emergencyrescuerecords',
    method: 'put',
    data: data
  })
}

// 删除应急救援记录
export function delEmergencyrescuerecords(rescueId) {
  return request({
    url: '/masterrabbit-kaixuan/emergencyrescuerecords/' + rescueId,
    method: 'delete'
  })
}
